package 补充.输入输出操作.字符流;

import java.io.*;

public class 字符流缓冲区 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("D:\\Learn\\javademo\\untitled\\src\\补充_偏\\输入输出操作\\read.txt");
        BufferedReader br = new BufferedReader(fr);
        FileWriter fw= new FileWriter("D:\\Learn\\javademo\\untitled\\tar\\read.txt");
        BufferedWriter bw = new BufferedWriter(fw);
        String s;
        while ((s=br.readLine())!=null){
            bw.write(s);
            bw.newLine();
        }
        bw.close();
        br.close();
    }
}
